﻿using System;

namespace SquareRoot
{
    class SquareRoot
    {
        static void Sqrt()
        {
            Console.Write("Enter a positive integer: ");
            uint number = uint.Parse(Console.ReadLine());
            Console.WriteLine("Squeare root of: {0} is {1}", number, number * number);
        }
        static void Main()
        {
            try
            {
                Sqrt();
            }
            catch (SystemException)
            {
                Console.WriteLine("Invalid number! The number must be a positive integer.");
            }
            catch
            {
                Console.WriteLine("Something very bad was happened, maybe the end of the world is coming!!!!");
            }
            finally
            {
                Console.WriteLine("Good bye");
            }
        }
    }
}
